﻿@model Infinity.Models.Branch

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm("Delete", "Branche", new { id=Model.BranchID}))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Branch</legend>
        <span class="input input--jiro">
                <label class="" for="input-10" style="color:gray">
                    <span class="input__label-content input__label-content--jiro">
                        &nbsp;&nbsp; @Html.HiddenFor(model => model.BranchID)
                        Branch ID
                        &nbsp;&nbsp;&nbsp;
                        @Model.BranchID
                    </span>
                </label>
            </span>
            <br />
         <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Address" name="Address" id="Address" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Branch Address
                        <span class="star">@Html.ValidationMessageFor(model => model.Address, "*")</span>
                    </span>
                </label>
            </span>
         <br />
          <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Telephone" name="Telephone" id="Telephone" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Branch Phone
                        <span class="star">@Html.ValidationMessageFor(model => model.Telephone, "*")</span>
                    </span>
                </label>
            </span>
         <br />
         <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Branch_name" name="Branch_name" id="Branch_name" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Branch Name
                        <span class="star">@Html.ValidationMessageFor(model => model.Branch_name, "*")</span>
                    </span>
                </label>
            </span>
         <br />

         <p>

            @Html.ValidationSummary(false, "Please fix the errors then submit ")
        </p>

         <table>
  <tr>
     @* <td>@Html.ActionLink("Delete", "Delete", new { id = Model.BranchID }, new { @class = "send" })</td>*@
      <td>
                        <input type="submit" value="Delete" class="send" onclick="return confirm('Are you sure you  want to delete This')"; />

      </td>
      <td>&nbsp;&nbsp;<a href="@Url.Action("Index", "Branche")" class="send">BacK to list</a></td>

      <td>&nbsp;&nbsp;<a href="@Url.Action("Create", "Branche")" class="send">Create New Branch</a></td>
            <td> &nbsp;&nbsp;  <input type="submit"  value="Save" class="send" /></td>

  </tr> 
</table>
    </fieldset>
}
<div>
  
</div>
@*<div>
    @Html.ActionLink("Back to List", "Index") ||
    @Html.ActionLink("Create New","Create") ||
     @Html.ActionLink("Delete", "Delete", new { id = Model.BranchID })

   
    
</div>*@


       
